<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // var Person = {
        //     firstName: 'hello',
        //     lastName: 'world',
        //     getFullName: function() {
        //         console.log(this);
        //         var first = this.firstName;
        //         var fn = function() {
        //             console.log(this);
        //             return this.firstName + this.lastName;
        //         }
        //         return fn();
        //     }
        // }
        // Person.getFullName();


        var Person = {
            firstName: 'hello',
            lastName: 'world',
            getFullName: function() {
                console.log(this);
                var first = this.firstName;
                var fn = () => {
                    console.log(this);
                    return this.firstName + this.lastName;
                }
                return fn();
            }
        }
        Person.getFullName();
    </script>
</head>

<body>

</body>

</html>